* {

margin: 0;
padding: 0;
box-sizing: border-box;
}

a {
/* 去掉a的下划线  */
text-decoration: none;
color: #7b7b7b;
}

li {
list-style: none;
}

body {
background-color: #f6f6f6;
}

/* :root === html   */
:root {
/* 字号是可继承的属性,为了后面使用rem  */
font-size: 10px;
}
body {
/* font-size:16px; */
/* 16px = 1.6 * 10px   */
/* 10px == 1rem  */
font-size: 1.6rem;
}

@media screen and (min-width: 480px) {
:root {
font-size: 12px;
}
}

@media screen and (min-width: 640px) {
:root {
font-size: 14px;
}
}

@media screen and (min-width: 720px) {
:root {
font-size: 16px;
}
}

.header {
background-color: #e43130;
color: #fff;
height: 4.4rem;
position:fixed;
left: 0;
top: 0;
right: 0;
}

.main{
position:absolute;
top:4.4rem;
left: 0;
right: 0;
min-width: auto;
}

.footer {
background-color: #ccc;
color: #fff;
height: 4.4rem;
position: fixed;
left: 0;
right: 0;
bottom: 0;
}

/* header css*/
.header{
display: flex;
align-items: center;
}
.header .menu{
flex:1;
font-size: 2.5rem;
text-align:center;
}

.header .search{
flex:6;
background-color:white;
border-radius: 3rem;
padding: 0.5rem;
display: flex;
}
.header .search .logo{
color: #e43130;
flex: 0 1 4rem;
font-size:2rem;
text-align:center;
line-height:2rem;
}
.header .search .zoom{
color: #ccc;
font-size: 2rem;
flex: 0 1 4rem;
text-align:center;
line-height:2rem;
border-left:1px solid;
}

/* 右边登录 */
.header .login{
flex:1;
color:white;
text-align:center;

}
.header .search .words{
flex: auto;
border:none;
outline: none;
color: #aaa;
}

/* 底部CSS*/

.footer {
display: flex;
justify-content:space-around;
align-items: center;
color: #666;
background-color: #eee;
box-shadow: 0 0 6px #aaa;
}

/* flex支持嵌套布局，flex项目本身也可以是一个flex容器，它内部的子元素也可以使用flex布局 */
.footer div{
display:flex;
flex-flow: column nowrap;
align-items:center;
}
.footer div:hover{
cursor: pointer;
}
.footer > div > .iconfont{
font-size:2rem;
}
.footer >div >span{
font-size: 1rem;
}

/* 搜索框左边NAV CSS*/

.main .nav img{
height: 4rem;
width:4rem;
}

.main .nav{
/* border: 1px solid; */
padding: 1rem;
display: flex;
flex-flow: row wrap;
}

.main .nav li{
flex: 1 1 20%;
display: flex;
flex-flow: column wrap;
align-items: center;
}

/*秒杀CSS*/
.main .ms {
background-color: #fff;
/* border: 1px solid #000; */
padding: 1rem;
margin: 1rem 0;
}

/* 头部 */
.main .ms .ms-top {
font: 1.3rem;
height: 3rem;
display: flex;
justify-content: space-between;
}
/* 头部的左 */
.main .ms .ms-top .left {
display: flex;
}
.main .ms .ms-top .left .notice {
display: flex;
height: 2rem;
font-size: 1.1rem;
border: 1px solid #e43130;
border-radius: 2rem;
justify-content: center;
align-items: center;
}
.main .ms .ms-top .left .notice .tips {
background-color: #e43130;
color: #fff;
border-radius: 2rem;
padding: 0.3rem 0.5rem;
}
.main .ms .ms-top .right {
color: #e43130;
font-size: 1.2rem;
}

/* 秒杀主体区 */

.main .ms .ms-body {
display: flex;
justify-content: space-between;
}

/* 图片与价格居中对齐 */
.main .ms .ms-body .item {
/* display: flex;
flex-flow: column nowrap;
align-items: center; */

text-align: center;
}

.main .ms .ms-body .item img {
height: 8rem;
width: 8rem;
}

/* 当前秒杀价 */
.main .ms .ms-body .item div:first-of-type {
color: #e43130;
font-weight: bolder;
}

/* 原价 */
.main .ms .ms-body .item div:last-of-type {
color: #666;
text-decoration-line: line-through;
text-decoration-color: #666;
}